

local mt = ac.skill['牛的力量']
mt.temp = '攻击触发'

function mt:on_init()
    self.odds = self.data1
end

function mt:on_run(hero,target)
    local hero = self.owner
    local temp = hero:find_skill('强化图腾')
    hero:add('基础力量',self.data3)
    if temp then
        temp:set_cd(temp:get_cd() - 2)
    end
end


local mt = ac.skill['强化图腾']
mt.skill_type = 'passive'
mt.castetArt = [[Abilities\Spells\Orc\SpiritLink\SpiritLinkTarget.mdl]]

function mt:on_cooldown()
    local hero = self.owner
    self:gc_clear()
    self:gc(hero:add('攻击加成',self.data1))
    self:gc(hero:add('攻击距离',self.data2))
    self:gc(hero:add_effect(self.castetArt,'weapon'))
    self:gc(hero:event '单位-攻击命中'(function()
        self:gc_clear()
        self:cooling()
    end))
end
